<div class="file" id="List">
    <table width="100%" border="0" cellspacing="1" cellpadding="2" class="list">
        <tr class="heading"  bgcolor="#708089">
            <th width="6%" valign="top" align="left"><?php echo __('S.NO') ?></th>
            <th valign="top"  align="left"><?php echo  __('YEAR', true); ?></th>
            <th valign="top"  align ="left"><?php echo __('MONTH', true); ?></th>
            <th valign="top"  align ="left"><?php echo __('TOTAL_COUNT', true); ?></th>
            <th valign="top"  align ="left"><?php echo __('TOTAL_FOR_MONTH_INCOME', true); ?></th>
            <th valign="top"  align ="left"><?php echo __('TOTAL_FOR_MONTH_PAYABLE', true); ?></th>
            <th valign="top"  align ="left"><?php echo __('ACTION', true); ?></th>
        </tr>
        <?php
        if (isset($payableList) && count($payableList) > 0) {
            $i = 0;
            foreach ($payableList as $arrayDetail) {
                ?>
                <tr class="<?php echo (($i%2) == 0)? 'even' : 'odd';?>">
                    <td>&nbsp;<?php echo $i + 1 ?></td>
                    <td>&nbsp;<?php echo $arrayDetail['Payable']['year'];?></td>
                    <td>&nbsp;<?php echo $arrayDetail['Payable']['month']; ?></td>
                    <td>&nbsp;<?php echo $arrayDetail['Payable']['count']; ?></td>
                    <td>&nbsp;<?php echo $arrayDetail['Payable']['total_for_month_income']; ?></td>
                    <td>&nbsp;<?php echo $arrayDetail['Payable']['total_payable']; ?></td>
                    <td>&nbsp;<?php 
                        echo $this->html->link($this->Html->image('icons/16/icon_view.gif'), array(
                                'controller' => 'reports',
                                'action' => 'payment_view', $arrayDetail['Payable']['payee_id_proof_no'] ,$arrayDetail['Payable']['year'], $arrayDetail['Payable']['month'],
                                ), array(
                                'alt' => __('EDIT', true),
                                'title' => __('EDIT', true),
                                'escape'=>false)
                            );
                    
                    ?></td>
                </tr>  
                <?php
                $i++;
            }
        } else {
        ?>
        <tr>
            <td colspan="12" bgcolor="#ffffff" align="center">
                <div class="pagination">            
                    <?php
                        echo __("NO_RECORD_MESSAGE");
                    ?>              
                </div>
            </td>
        </tr> <?php }?>
        <tr bgcolor="#ffffff">
            <td colspan="7" valign="top">
                <table width="50%">
                    <tr>
                        <td width="10%">
                            <b><?php echo __('LEGENDS') ?> :- </b> 
                        </td>
                        <td width="20%">
                            <?php echo $this->html->image('/img/icons/16/icon_view.gif'); ?>
                            <?php echo __('VIEW') ?>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</div>